/*
* Copyright (c) 2020 - 2025 Renesas Electronics Corporation and/or its affiliates
*
* SPDX-License-Identifier: BSD-3-Clause
*/

/*******************************************************************************************************************//**
 * @addtogroup BOARD_RA6M5_CK_LEDS
 *
 * @{
 **********************************************************************************************************************/

/***********************************************************************************************************************
 * Includes
 **********************************************************************************************************************/
#include "bsp_api.h"
#if defined(BOARD_RA6M5_CK)

/***********************************************************************************************************************
 * Macro definitions
 **********************************************************************************************************************/

/***********************************************************************************************************************
 * Typedef definitions
 **********************************************************************************************************************/

/***********************************************************************************************************************
 * Private global variables and functions
 **********************************************************************************************************************/

/** Array of LED IOPORT pins. */
static const uint16_t g_bsp_prv_leds[] =
{
    (uint16_t) BSP_IO_PORT_06_PIN_10,  ///< LED1 RED
    (uint16_t) BSP_IO_PORT_06_PIN_09,  ///< LED3 GREEN
    (uint16_t) BSP_IO_PORT_06_PIN_01,  ///< LED4 BLUE
    (uint16_t) BSP_IO_PORT_06_PIN_02,  ///< LED2_TRI_COLOUR_RED
    (uint16_t) BSP_IO_PORT_06_PIN_03,  ///< LED2_TRI_COLOUR_GREEN
    (uint16_t) BSP_IO_PORT_06_PIN_05,  ///< LED2_TRI_COLOUR_BLUE
};

/***********************************************************************************************************************
 * Exported global variables (to be accessed by other files)
 **********************************************************************************************************************/

/** Structure with LED information for this board. */

const bsp_leds_t g_bsp_leds =
{
    .led_count = (uint16_t) ((sizeof(g_bsp_prv_leds) / sizeof(g_bsp_prv_leds[0]))),
    .p_leds    = &g_bsp_prv_leds[0]
};

/***********************************************************************************************************************
 * Exported global variables (to be accessed by other files)
 **********************************************************************************************************************/

#endif

/** @} (end addtogroup BOARD_RA6M5_CK_LEDS) */
